package com.party.core.dao.read.mall;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.mall.MallGoodsSpec;
import com.party.core.model.mall.MallGoodsSpecOutput;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商城产品规格数据读取
 * Created by wei.li
 *
 * @date 2017/8/15 0015
 * @time 16:09
 */

@Repository
public interface MallGoodsSpecReadDao extends BaseReadDao<MallGoodsSpec> {
    List<Map<String, Object>> batchProductList(@Param(value = "params") Map<String, Object> params);

    List<Map<String, String>> getProductSpec(@Param(value = "goodsId") String goodsId, @Param(value = "delFlag") String delFlag);

    /**
     * 获取某商品的产品和规格分类
     * @param id: 商品id
     * @return
     */
    MallGoodsSpecOutput specs(@Param("id") String id);
}
